doc: Check for pandoc
authorMatthias Clasen <mclasen@redhat.com>
Sun, 24 May 2020 01:41:15 +0000 (21:41 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 25 May 2020 20:11:18 +0000 (16:11 -0400)
Add an explicit check for pandoc, so we get a clear
error message if it is missing.

docs/reference/gtk/meson.build

index b30bbb91b75d70f661157e312c4bb45c037397d6..13b40720235796ef8e366b30bdd0f3d6275df2fe 100644 (file)
@@ -403,6 +403,8 @@ if get_option('gtk_doc')
   configure_file(input: 'version.xml.in', output: 'version.xml', configuration: version_conf)
   configure_file(input: 'getting_started.xml.in', output: 'getting_started.xml', configuration: src_dir_conf)
 
+  # gtk-markdown-to-docbook uses pandoc
+  pandoc = find_program('pandoc', required: true)
   expand_md = find_program('gtk-markdown-to-docbook')
   expand_md_targets = []
   foreach t : expand_content_md_files